/// 日志处理接口
abstract class CooldownLogger {
  void debug(String message);
  void error(String message);
}

/// 错误处理接口
abstract class CooldownErrorHandler {
  void handleError(Object error, StackTrace stackTrace, String prefix);
}

/// 回调类型定义
typedef AsyncCallback<T> = Future<T> Function();
typedef DurationCallback = void Function(Duration remaining);

/// 防抖按钮样式
enum PDButtonType {
  /// 自定义 GestureDetector
  customize,

  /// ElevatedButton
  elevated,
}
